package com.huawei.spare.part.replace.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PatternUtils {

//    private static final Logger log = LoggerFactory.getLogger(PatternUtils.class);

    public static String getMatchedContent(String content, Pattern patter, int group) {
        final Matcher matcher = patter.matcher(content);
        if (matcher.find()) {
            return matcher.group(group).trim();
        }
        return null;
    }
}
